package com.ssm.service;

import com.ssm.Entity.Folder;
import com.ssm.dao.FolderDAOImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FolderService {

    @Autowired
    private FolderDAOImpl folderDAO;


    public int createFolder(Folder folder) {
        return folderDAO.createFolder(folder);
    }

    public Folder findFolderById(int userId) {
        return folderDAO.findFolderById(userId);
    }
}
